package sk.tuke.constraintbuilder.model;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;

public class RootElement {
	
	private static int counter = 0;
	private int id;
	private String name;
	private String description;
	
	public RootElement(){
		id = counter++;
	}
	
	@XmlTransient
	public int getId() {
		return id;
	}

	@XmlAttribute(required = true)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlElement(required = false)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
